Why I cannot mount ISO file from this .desktop file by `fuseiso`?

Posted by Kevin Dong Nai Jia on Ask Ubuntu See other posts from Ask Ubuntu or by Kevin Dong Nai Jia
Published on 2014-08-24T13:11:33Z Indexed on 2014/08/24 16:29 UTC
Read the original article Hit count: 271

Filed under:
|

I want to mount iso files without root permission by fuseiso, and this is how to mount a iso file:

fuseiso -p '/path/to/isofilename' '/media/isofilename'

, so I make a .desktop file followed Freedesktop Standard (The Exec key) as bellow:

#!/usr/bin/env xdg-open

[Desktop Entry]
Name=Mount ISO image
Name[zh_TW]=???????
Exec=fuseiso -p %U "/media/$(basename %U)"
Terminal=false
MimeType=application/x-cd-image

, but it failed.

I think it failed because of $(basename %U), if it is changed to a fixed string, the iso file can be mounted.

How can I solve this problem?

© Ask Ubuntu or respective owner

Related posts about .desktop

Related posts about xdg